package com.base;

import java.util.Arrays;

public class ArrayDemo04 {
    public static void main(String[] args) {
        int[] a= {1,2,55,32, 6, 4,3};

        //调用  toString():数组转换为字符串类型的数组
        System.out.println(Arrays.toString(a));

        //调用sort 进行排序
        Arrays.sort(a);
        System.out.println(Arrays.toString(a));

        //填充
        Arrays.fill(a,0);
        System.out.println(Arrays.toString(a));
    }
}
